import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {OrdOrderComponent} from './ord-order.component';

const routes: Routes = [
    {path: '', component: OrdOrderComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-ord-order/add-ord-order.module#AddOrdOrderModule'},
            {path: 'list', loadChildren: './list-ord-order/list-ord-order.module#ListOrdOrderModule'},
            {path: 'modify', loadChildren: './modify-ord-order/modify-ord-order.module#ModifyOrdOrderModule'},
            {path: 'report', loadChildren: './report-ord-order/report-ord-order.module#ReportOrdOrderModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class OrdOrderRoutingModule {
}
